﻿using System;

namespace VDataAdapter.Communication
{
    enum MessageType
    {
        MarketInfo,
        Stock,
        Transaction
    };

    public enum TransactionType
    {
        Buy,
        Sell
    };

    interface IVdataMessageBuilder
    {
        string BuildMessageMarket(PriceLibrary.PriceService.MarketInfo objNew, PriceLibrary.PriceService.MarketInfo objOld);
        string BuildMessagePutThrough(PriceLibrary.PriceService.StockInfoStatic objStatic, PriceLibrary.PriceService.StockInfoDyns objNew, PriceLibrary.PriceService.StockInfoDyns objOld, TransactionType transType);
        string BuildMessageStock(PriceLibrary.PriceService.StockInfoStatic objStatic, PriceLibrary.PriceService.StockInfoDyns objNew, PriceLibrary.PriceService.StockInfoDyns objOld);
        string BuildMessageTransaction(PriceLibrary.ChartService.Transaction objNew, PriceLibrary.ChartService.Transaction objOld);
        string BuildMessageTransactionPutThrough(PriceLibrary.PriceService.Transaction objNew, PriceLibrary.PriceService.Transaction objOld);
    }
}
